using System;
using Test20230505.Models;
using Microsoft.EntityFrameworkCore;

namespace Test20230505
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
        {

            try
            {


                SQLitePCL.Batteries_V2.Init();
                this.Database.EnsureCreated();
            }
            catch (Exception) 
            {
            } 

        }

        public DbSet<Supplierinfo> Supplierinfos { get; set; }

    }
}

